package com.zbkj.crmeb.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.crmeb.store.dto.HomeStyleDTO;
import com.zbkj.crmeb.store.dto.HomeStyleTemplateDTO;
import com.zbkj.crmeb.store.model.HomeStyle;
import com.zbkj.crmeb.store.model.HomeStyleTemplate;

import java.util.List;

/**
 * 首页样式
 * @Description: 
 * @author duyb
 * @date 2021-09-25
 */
public interface HomeStyleTemplateService extends IService<HomeStyleTemplate> {


    /**
     * 获取商户配置项
     * @Description:
     * @author duyb
     * @param @param merId
     * @param @return
     * @return List<HomeStyleDTO>
     * @throws
     */
    List<HomeStyleTemplateDTO> listEntity();

    /**
     * 根据类型获取商户配置项
     * @Description:  
     * @author duyb
     * @param @param merId
     * @param @param type
     * @param @return
     * @return List<HomeStyleDTO>
     * @throws
     */
    List<HomeStyleTemplateDTO> listEntityByType( String templateId);

    /**
     * 保存
     * @Description:
     * @author duyb
     * @param @param merId
     * @param @param homeStyleDTOs
     * @param @return
     * @return Boolean
     * @throws
     */
    Boolean saveEntity( List<HomeStyleTemplateDTO> homeStyleDTOs);
    
}
